<template>
  <div id="page3-index" ref="appRef">
    <Home />
  </div>
</template>

<script lang="ts">
import { defineComponent, onMounted, onUnmounted } from 'vue'
import useDraw from '@/utils/useDraw'
import Home from './home/index.vue'

export default defineComponent({
  name: 'Page3Index',
  components: {
    Home
  },
  setup() {
    // * 适配处理
    const { appRef, calcRate, windowDraw, unWindowDraw } = useDraw()
    // 生命周期
    onMounted(() => {
      windowDraw()
      calcRate()
    })

    onUnmounted(() => {
      unWindowDraw()
    })

    return {
      appRef
    }
  }
})
</script>

<style lang="scss" scoped>
#page3-index {
  div {
    box-sizing: border-box;
  }
  color: #d3d6dd;
  width: 15360px;
  height: 2160px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: left top;
  font-size: 100px;
  // border: 10px solid red;
}
</style>
